package day003;

public class WhileTest01 {
    public static void main(String[] args) {
        int i = 0, sum = 0;
        while (i <= 100) {
            if (i % 2 == 1) {
                sum += i;
            }
            i++;
        }

        System.out.println("100以内的奇数和为：" + sum);
    }
}
